import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'
import MainPage from '@/pages/MainPage.vue'
import superSimilarPane from '@/pages/superSimilarPane.vue'

const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    name: 'main',
    meta: {
      title: '主页',
      keepAlive: true,
      requireAuth: false,
    },
    component: MainPage,
  },
  {
    path: '/superSimilarPane',
    name: 'superSimilarPane',
    meta: {
      title: '相似度工具',
    },
    component: superSimilarPane,
  },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
